package com.zrrd.learn.chapter08面向对象.pattern.proxy;

/**
 * 法院
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/4 8:58
 */

public class Court {

    public static void main(String[] args) {
        Defendant d1 = new Defendant();
        d1.setName("吴xx");
        Sayinterface s1 = new LawyerProxy(d1);
        s1.say();
    }

}
